package com.yang.core.model;

import com.zhy.base.jpa.model.DefaultModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * Created by baipan
 * Date: 2019/12/26 0026
 */
@EqualsAndHashCode(callSuper = true)
@Data
@DynamicUpdate
@DynamicInsert
@Accessors(chain = true)
@Entity(name = "qb_order")
public class Oder extends DefaultModel {
    /**
     * 订单编号
     */
    @Column(name = "oder_id")
    String oderId;

    /**
     * 用户Id
     */
    @Column(name = "user_id")
    String userId;

    /**
     * 地址Id
     */
    @Column(name = "addr_id")
    String addrId;

    /**
     * 完成状态  0 未完成   1完成
     */
    @Column(name = "finish")
    Integer finish;

    /**
     * price
     */
    @Column(name = "price")
    String price;

    @Column(name = "product_id")
    String productId;
}
